import ListCon from "@/views/chitLook/components/chitQuery/listCon.vue";
import DetailItem from "@/views/chitLook/components/chitQuery/detailItem.vue";
import ListItem from "@/views/chitLook/components/chitQuery/listItem.vue";
import InfoItem from '@/views/chitLook/components/chitQuery/infoItem.vue'
import {CHIT_QUERY_SHOW_TYPE} from "@/constantData";
import {isArr} from "@/utils/arrayUtil";

const chitQueryMixins = {
  components: {
    ListCon,
    DetailItem,
    ListItem,
    InfoItem
  },
  props: {
    infoData: {
      type: Object
    }
  },
  data() {
    return {}
  },
  methods: {
    isArr,
    goBack() {
      this.$emit('goBack')
    },
    goDetail(item) {
      this.$emit('goDetail', item, CHIT_QUERY_SHOW_TYPE.CHIT_DETAIL)
    },
    goInfo(item) {
      this.$emit('goInfo', item, CHIT_QUERY_SHOW_TYPE.INFO)
    },
    goChitInfo(item){
      this.$emit('goChitInfo', item)
    },
  }
}

export {chitQueryMixins}
